package com.axapoint.opoc.service;

import java.io.IOException;
import java.util.Enumeration;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class Get
 */
public class HentLocation extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public HentLocation() {
        super();
        
    }

	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
	 */
	@SuppressWarnings("unchecked")
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		System.out.println("Request parameters:");

		// vT, rT, attr, relationer??
		// HentLocation?uuid|navn[&vT&rT]
		// HentLocation?uuid=*
		// HentLokation?navn="Autorative Organisation"&filter="relation:"
		// NEVER traverse same entity more than once
		
		String uuid = request.getParameter("uuid");
		String navn = request.getParameter("navn");

		if (uuid != null) {
			
		} else if (navn != null) {
			
		}
	}
}
